package cn.edu.ctbu.dp01.constant;
public enum REnum {
    UNKNOWN_ERR(-999,"未知错误"),
    COMMON_ERR(-10,"一般错误"),
    LOGIN_ERR(-2,"登录错误"),
    QUERY_ERR(-3,"查询错误"),
    SUCCESS(1,"成功");

    private Integer code;
    private String msg;
    REnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public Integer getCode() {
        return code;
    }
    public String getMsg()
    {
        return msg;
    }
}
